<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增学生</title>
<script type="text/javascript" src="${request.getContextPath()}/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${request.getContextPath()}/js/student/addstudent.js"></script>

<script>var ctx="${request.getContextPath()}"</script>
</head>
<body>
	<form id="dataform">
	<input type="hidden" name="id" id="id" value="${(student.id)!}">
	  <div><input type="text" name="name" value="${(student.name)!}" id="name" /></div>
	  <div><input type="text" name="age" value="${(student.age)! }" id="age" /></div>
	  <div><input type="hidden" name="c" value="3" id="c" /></div>
	  <div>
	  	<input type="radio" name="sexual" <#if (student?? && student.sexual == 1)> checked </#if> value="1"/>男
	  	<input type="radio" name="sexual" <#if (student?? && student.sexual == 2)> checked </#if> value="2"/>女
	  	
	  </div>
	  <div>
	    <textarea name="d" rows="8" cols="40">4</textarea>
	  </div>
	  <div><select name="education">
	    <option value="1" <#if (student?? && student.education == 1)> selected="selected" </#if>>大专</option>
	    <option value="2" <#if (student?? && student.education == 2)> selected="selected" </#if>>本科</option>
	    <option value="3" <#if (student?? && student.education == 3)> selected="selected" </#if>>硕士</option>
	    <option value="4" <#if (student?? && student.education == 4)> selected="selected" </#if>>博士</option>
	  </select></div>
	  <div>
	  <#if (student.interest)??><#assign s= (student.interest)?split(",") ></#if>
	    
	    
	    <input type="checkbox" name="interest" value="1" <#if s?? && s?seq_contains("1")> checked="checked" </#if>/>阅读
	    <input type="checkbox" name="interest" value="2" <#if s?? && s?seq_contains("2")> checked="checked" </#if>/>唱歌
	    <input type="checkbox" name="interest" value="3" <#if s?? && s?seq_contains("3")> checked="checked" </#if>/>跳舞
	    <input type="checkbox" name="interest" value="4" <#if s?? && s?seq_contains("4")> checked="checked" </#if>/>运动
	  </div>
	  <div>
	    <input type="button" name="g" value="button" id="g" />
	  </div>
	</form>
</body>
</html>